﻿using System;
using System.Threading;
using System.Threading.Tasks;
using WxOpenPlatLibCore.Utils;

namespace test
{
    class Program
    {
        static void Main(string[] args)
        {
            CacheHelper.Insert("a",111,1);
            Console.WriteLine(CacheHelper.Get("a"));
            Task.Run(()=> {
                for (int i = 0; i < 100; i++)
                {
                    if (i>60)
                    {
                        Console.WriteLine(DateTime.Now + ":a->" + CacheHelper.Get("a"));
                    }
                    else
                    {
                        Console.WriteLine(DateTime.Now);
                    }
                    Thread.Sleep(1000);
                }
            });
            Console.ReadKey();
        }
    }
}
